<script setup lang="ts">

const r = reactive({
  user: ''
})
const go = async () => {
  const res = await axios({
    url: '/employee/currentUser',
    method: 'get'
  })
  r.user = res.data;
  ElNotification.warning(res.data)
}
</script>

<template>
  <div>this is home</div>
  <ElButton @click="go()">get current user</ElButton>
  <div style="color: red;">{{r.user}}</div>
</template>
